<html>
<head id="container" name="container">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="mon, 22 jul 2002 11:12:01 GMT">
<meta http-equiv="pragma" content="no-cache">
<title>管理系统</title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="${base}/css/admin/Comm.css" media="screen" />
<link rel="stylesheet" type="text/css" href="${base}/css/admin/Skin_1.css" id="cssfile" media="screen" />
<link rel="stylesheet" type="text/css" href="${base}/css/admin/global.css" />
<link rel="stylesheet" type="text/css" href="${base}/css/admin/mainframe.css" />
<script type="text/javascript" src="${base}/js/Common.js"></script>
<script src="${base}/js/jquery-1.4.2.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="${base}/js/ymPrompt/style/bluebar/ymPrompt.css" />
<script type='text/javascript' src="${base}/js/ymPrompt/ymPrompt.js"></script>
</head>
<body style="overflow:visible;">
<table cellspacing="0" cellpadding="0" width="100%" height="100%" id="abody">
  <tr>
    <td class="getuserdata" colspan="3" >
      <div class="topdata">
      
          <div class="top_right">
            <div class="tophelp"><a href="javascript:showTable();"><font class="import"><#if _admin_key??>${_admin_key.account}</#if></font> (帐号设置)</a> | <a href="${base}/admin/main.do" target="mainFrame">桌面</a> | <a href="${base}/admin/main.do" target="mainFrame">设置向导</a> | <a href="${base}/admin/main.do" target="_blank">浏览网店</a> | <a href="${base}/adminLogin/Logout.do">退出</a></div>
            <div class="alerts"><a href="javascript:void(0)" target="mainFrame" id="real-Time_Tips">实时提醒：最新订单2个</a></div>
          </div>
          <div class="refresh"><a href="javascript:frames['mainFrame'].location.reload();">刷新</a></div>
          <div class="top_left">
              <div class="switch">
              <div class="topmenu" id="topmenu">
                  <a onClick="javascript:MainmenuSelect(1)" href="${base}/admin/prod/list.do"target="mainFrame"><span>产品管理</span></a>
                  <a onClick="javascript:MainmenuSelect(2)" href="/admin/typeList!typeList.html" target="mainFrame"><span>内容管理</span></a>
                  <a onClick="javascript:MainmenuSelect(3)" href="/admin/config/getBrandConfig!getBrandConfig.html" target="mainFrame"><span>系统设置</span></a>
              </div>
            </div>
          </div>
          
      </div>
      
    </td>
  </tr>
  <tr>
     <td class="skinleft" id="skinleft">
     <DIV id="leftPanel" class="leftcontent">
      <table class="fdbody" id="fdbody" cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
        <tr>
           <td class="manuSkinbody" style="height:100%;">
           <div class="leftmenu" id="leftmenu_1" style="display:none;">
               <h3 class="mmenu"><span style="cursor:pointer;">产品管理</span></h3>
               <ul class="m_menu">
               <li><a href="${base}/admin/prod/list.do" target="mainFrame"><input type="button" class="leftlimanu" disabled>产品列表</a></li>
               <li><a href="${base}/admin/prod/toAdd.do" target="mainFrame"><input type="button" class="leftlimanu" disabled>添加产品</a></li>
               </ul>
               <h3 class="mmenu"><span style="cursor:pointer;">产品分类管理</span></h3>
               <ul class="m_menu">
               <li><a href="${base}/admin/prod/type/list.do" target="mainFrame"><input type="button" class="leftlimanu" disabled>产品分类</a></li>
               <li><a href="${base}/admin/prod/type/toAdd.do" target="mainFrame"><input type="button" class="leftlimanu" disabled>新增产品分类</a></li>
               </ul>
           </div>
           
           <!--leftmenu_4:end-->
           <div class="leftmenu" id="leftmenu_2" style="display:none;">
               <h3 class="mmenu"><span>品牌资讯</span></h3>
               <ul class="m_menu">
               <li><a href="/admin/typeList!typeList.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>资讯分类</a></li>
               <li><a href="/admin/getCultrueList!getCultruePageList.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>资讯列表</a></li>
               </ul>
               <h3 class="mmenu"><span>网站帮助</span></h3>
               <ul class="m_menu">
               <li><a href="/admin/toHelpTypeList!toHelpTypeList.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>帮助分类</a></li>
               <li><a href="/admin/toHelpList!toHelpList.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>帮助列表</a></li>
               <li><a href="/admin/getOnlineHelpList!getOnlineHelpList.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>在线客服</a></li>
               </ul>
           </div>
           <div class="leftmenu" id="leftmenu_3" style="display:none;">
               <h3 class="mmenu"><span>基本信息</span></h3>
               <ul class="m_menu">
               <li><a href="/admin/config/getBrandConfig!getBrandConfig.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>基本信息设置</a></li>
               <li><a href="/admin/config/updateConfig!seo.html" target="mainFrame"><input type="button" class="leftlimanu" disabled>SEO关键词设置</a></li>
               </ul>
           </div>
           <!--leftmenu_8:end-->
           </td>
        </tr>
      </table>
      </DIV>
     </td>
     <td class="skincenter"><div style="width:5px; height:100%;"><a href="javascript:showleftmenu();" class="arrowleft" id="showmenu" target="_self"></a></div></td>
     <td class="skinright">
      <div id="mainFrameContainer" class="maincontent">
         <iframe src="${main}" name="mainFrame" id="mainFrame" class="mainFrame" frameborder="no" scrolling="auto" style="width:100%;height:100%;" hidefocus/></iframe>
	  </div>
     </td>
  </tr>
</table>
<DIV class="dialog" id="modify" style="width:400px; position:fixed; top:150px; left:400px; display:none">
<div class="inbox">
<table border="0" cellpadding="0" cellspacing="0" width="95%" class="infotable">
<tr>
    <td class="titletd">旧的登录密码:</td>
    <td class="infotd"><input type="password" id="oldPass" name="oldPass" class="txts infotext"></td>
</tr>
<tr>
    <td class="titletd">新密码:</td>
    <td class="infotd"><input type="password" id="password" name="password" class="txts infotext"></td>
</tr>
<tr>
    <td class="titletd">再次输入新密码:</td>
    <td class="infotd"><input type="password" id="rePass" name="rePass" class="txts infotext"></td>
</tr>
<tr height="30px">
	<td></td><td><div id="info" class="import"></div></td>
</tr>
</table>
</div>
</div>
</body>
</html>
<script type="text/javascript">
menuSelect();

showleftmenu();

MainmenuSelect(1);

function showTable(){
	ymPrompt.close();
	ymPrompt.win({
		elid:"modify",
		width:450,height:240,title:"修改密码",autoClose:false,
		btn:[['确定','yes'],['关闭','no']],
		handler:function(flag){
			if(flag == "yes"){
				var oldPass = $("#oldPass").val();
				var password = $("#password").val();
				var rePass = $("#rePass").val();
				if(checkPass(oldPass,password,rePass)){
					$.post("/admin/user/user!modifyPass.html",{oldPass:oldPass,password:password},function(data){
						if(data==1){
							ymPrompt.close();
							_alert({title:"温馨提示:",message:"修改成功!"});
						}else{
							$("#info").html("密码错误!");
						}
					},"text")
				}
			}else{
				ymPrompt.close();
			}
		}
	});
}

function checkPass(oldPass,password,rePass){
	var info = "";
	if(oldPass==""){
		info="密码错误!";
		$("#info").html(info);
		return false;
	}
	if(password==""){
		info="请输入新的登录密码!";
		$("#info").html(info);
		return false;
	}
	if(rePass==""){
		info="请再次输入新的登陆密码!";
		$("#info").html(info);
		return false;
	}
	return true;
}

</script>
